package com.idanchuang.component.logback;

import com.idanchuang.component.logback.annotation.MaskInLog;
import com.idanchuang.component.logback.enums.MaskType;

import java.util.List;

public class Person {

    @MaskInLog(MaskType.NAME)
    private String name;
    @MaskInLog(MaskType.MOBILE)
    private String mobile;
    private Person mother;
    @MaskInLog(MaskType.MOBILE)
    private List<String> mobiles;
    private List<Person> sons;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Person getMother() {
        return mother;
    }

    public void setMother(Person mother) {
        this.mother = mother;
    }

    public List<String> getMobiles() {
        return mobiles;
    }

    public void setMobiles(List<String> mobiles) {
        this.mobiles = mobiles;
    }

    public List<Person> getSons() {
        return sons;
    }

    public void setSons(List<Person> sons) {
        this.sons = sons;
    }
}
